package com.nbjtjc.safe.mapper.safe;

import com.nbjtjc.safe.model.safe.SafeDangerInspectPlan;
import com.nbjtjc.util.MyMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SafeDangerInspectPlanMapper extends MyMapper<SafeDangerInspectPlan> {
    List<SafeDangerInspectPlan> search(@Param("sdip") SafeDangerInspectPlan safeDangerInspectPlan);

    @Update("update safe_danger_inspect_plan set status=#{status}" +
            " where id=#{planId}")
    int updatePlanStatus(@Param("planId") int planId,@Param("status") int status);


}